import request from '@/utils/request'

const api_name = '/mdkt/course'

export default {
  pageList(current,limit,searchObj){
    return request({
      url: `${api_name}/findQueryPage/${current}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  removeCourseId(id){
    return request({
      url: `${api_name}/remove/${id}`,
      method: 'delete'
    })
  },
  batchRemove(idList) {
    return request({
      url: `${api_name}/removeBatch`,
      method: `delete`,
      data: idList
    })
  },
}
